package com.ruibang.glass.produce.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;


/**
 * @Author: songJinKang
 * @CreateTime: 2024-03-18  20:39
 * @Description: TODO:领料物品实体
 * @Version: 1.0
 */


@Data
@ApiModel
@TableName("g_produce_material_item_info")
public class MaterialItemInfo {

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("库存ID")
    @NotBlank(message = "库存ID不可为空")
    private String inventoryId;

    @ApiModelProperty("原料领取ID")
    private String materialReceiveId;

    @ApiModelProperty("物品名称")
    @NotBlank(message = "物品名称不可为空")
    private String itemName;

    @ApiModelProperty("物料编码不可为空")
    @NotBlank(message = "物料编码")
    private String itemCode;

    @ApiModelProperty("物料Id")
    @NotBlank(message = "物料Id不可为空")
    private String itemId;

    @ApiModelProperty("条码编号")
    @NotBlank(message = "条码编号不可空")
    private String code;

    @ApiModelProperty("批次号")
    @NotBlank(message = "批次号不可空")
    private String batchNumber;

    @ApiModelProperty("单位")
    private String unit;

    @ApiModelProperty("领取数")
    @NotNull(message = "领取数不可为空")
    private BigDecimal count;

    @ApiModelProperty(value = "库位ID")
    @NotBlank(message = "库位ID不可空")
    private String warehouseLocationId;

    @ApiModelProperty(value = "库位名称")
    @NotBlank(message = "库位名称不可空")
    private String warehouseLocationName;

    @ApiModelProperty("规格")
    private String specification;

    @ApiModelProperty("序列号")
    private String serialNumber;

    @ApiModelProperty("含量")
    @NotNull(message = "含量不可为空")
    private BigDecimal content;

    @ApiModelProperty("供应商ID")
    @NotBlank(message = "供应商ID不可为空")
    private String supplierId;

    @ApiModelProperty("供应商名称")
    @NotBlank(message = "供应商名称不可为空")
    private String supplierName;

    @ApiModelProperty(value = "是否删除：1：是 0：否")
    @TableLogic
    private String isDelete;
}















